with open("word.txt", "r", encoding="utf-8") as f:
    res = f.read()
    count = res.count('python')
    print("python出现了%d次" % (count))
